package com.wdd.myplatform.repository;

import com.wdd.myplatform.entity.EsDemoBean;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface EsGoodsRespository extends ElasticsearchRepository<EsDemoBean,Long> {

/**
     * 测试
     * @param userId
     * @param remark
     * @return
     */

    Page<EsDemoBean> findByUserIdOrRemark(String userId, String remark, Pageable pageable);

    EsDemoBean getByUserId(String userId);
}
